<template>
  <div class="leftNav">
    <el-menu
        default-active="1"
        class="el-menu-vertical-demo">
      <router-link to="HomeTemplate">
        <el-menu-item index="1">
          <i class="el-icon-menu"></i>
          <span slot="title">格式模板设置</span>
        </el-menu-item>
      </router-link>
      <router-link to="HomeHistory">
        <el-menu-item index="2">
          <i class="el-icon-menu"></i>
          <span slot="title">格式化历史记录</span>
        </el-menu-item>
      </router-link>
      <router-link to="HomeNewdoc">
        <el-menu-item index="3">
          <i class="el-icon-menu"></i>
          <span slot="title">创建新文档</span>
        </el-menu-item>
      </router-link>
    </el-menu>
  </div>
</template>

<script>
  export default {
    name: "leftNav"
  }
</script>

<style scoped>
  .leftNav{
    width: 200px;
    text-align: left;
  }
  .el-menu-vertical-demo{
    height: 100vh;
  }
</style>